<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自动化脚本平台 - 我的脚本</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f8fafc;
            color: #2d3436;
            line-height: 1.6;
        }

        .header {
            background: rgba(255, 255, 255, 0.95);
            padding: 1.2rem 2.5rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(12px);
        }

        .nav {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            text-decoration: none;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            align-items: center;
        }

        .nav-links a {
            color: #475569;
            text-decoration: none;
            font-weight: 600;
            padding: 0.8rem 1.5rem;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            background: #eff6ff;
            color: #2563eb;
        }

        .main-container {
            max-width: 1280px;
            margin: 100px auto 0;
            padding: 2.5rem;
        }

        .script-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2.5rem;
        }

        .script-card {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
        }

        .script-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        }

        .script-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #2563eb;
            margin-bottom: 1.2rem;
            letter-spacing: -0.5px;
        }

        .script-desc {
            color: #64748b;
            font-size: 1rem;
            margin-bottom: 1.8rem;
            height: 4.8rem;
            overflow: hidden;
            line-height: 1.6;
        }

        .script-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #94a3b8;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .script-actions {
            display: flex;
            gap: 1.2rem;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e2e8f0;
        }

        .action-btn {
            padding: 0.8rem 1.5rem;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            flex: 1;
        }

        .run-btn {
            background: #2563eb;
            color: white;
        }

        .run-btn:hover {
            background: #1d4ed8;
            transform: translateY(-2px);
        }

        .edit-btn {
            background: #eff6ff;
            color: #2563eb;
        }

        .edit-btn:hover {
            background: #dbeafe;
            transform: translateY(-2px);
        }

        .delete-btn {
            background: #fef2f2;
            color: #dc2626;
        }

        .delete-btn:hover {
            background: #fee2e2;
            transform: translateY(-2px);
        }

        .section-title {
            font-size: 2rem;
            font-weight: 800;
            color: #2563eb;
            margin-bottom: 2.5rem;
            padding-bottom: 1.2rem;
            border-bottom: 2px solid #e2e8f0;
            letter-spacing: -1px;
        }

        .section {
            margin-bottom: 5rem;
        }

        /* 商店卡片特殊样式 */
        .script-card[style*="gradient"] {
            border: none;
            padding: 2.5rem 2rem;
        }

        .script-card[style*="gradient"] .action-btn {
            background: white;
            color: #2563eb;
            font-weight: 700;
            padding: 1rem;
            margin-top: 1rem;
        }

        .script-card[style*="gradient"] .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body>
    <header class="header">
        <nav class="nav">
            <a href="/" class="logo">自动化脚本平台</a>
            <div class="nav-links">
                <a href="/scripts">我的脚本</a>
                <a href="/store">脚本商店</a>
                <a href="/manage">个人中心</a>
                <a href="/logout">退出登录</a>
            </div>
        </nav>
    </header>

    <main class="main-container">
        <section class="section">
            <h2 class="section-title">我的脚本</h2>
            <div class="script-grid">
                <div class="script-card">
                    <h3 class="script-title">数据采集脚本</h3>
                    <p class="script-desc">自动化采集指定网站的数据，支持多种数据格式导出。</p>
                    <div class="script-meta">
                        <span>创建时间: 2023-06-15</span>
                        <span>运行次数: 128</span>
                    </div>
                    <div class="script-actions">
                        <button class="action-btn run-btn">运行</button>
                        <button class="action-btn edit-btn">编辑</button>
                        <button class="action-btn delete-btn">删除</button>
                    </div>
                </div>
                
                <div class="script-card">
                    <h3 class="script-title">数据处理脚本</h3>
                    <p class="script-desc">对采集的数据进行清洗、转换和分析处理。</p>
                    <div class="script-meta">
                        <span>创建时间: 2023-06-18</span>
                        <span>运行次数: 56</span>
                    </div>
                    <div class="script-actions">
                        <button class="action-btn run-btn">运行</button>
                        <button class="action-btn edit-btn">编辑</button>
                        <button class="action-btn delete-btn">删除</button>
                    </div>
                </div>

                <div class="script-card">
                    <h3 class="script-title">自动化测试脚本</h3>
                    <p class="script-desc">自动执行UI测试和接口测试，生成测试报告。</p>
                    <div class="script-meta">
                        <span>创建时间: 2023-06-20</span>
                        <span>运行次数: 89</span>
                    </div>
                    <div class="script-actions">
                        <button class="action-btn run-btn">运行</button>
                        <button class="action-btn edit-btn">编辑</button>
                        <button class="action-btn delete-btn">删除</button>
                    </div>
                </div>
            </div>
        </section>

        <section class="section">
            <h2 class="section-title">脚本商店</h2>
            <div class="script-grid">
                <div class="script-card">
                    <h3 class="script-title">高级数据分析脚本</h3>
                    <p class="script-desc">使用机器学习算法对数据进行深度分析和预测。</p>
                    <div class="script-meta">
                        <span>价格: ¥299</span>
                        <span>销量: 256</span>
                    </div>
                    <div class="script-actions">
                        <button class="action-btn run-btn">购买</button>
                        <button class="action-btn edit-btn">预览</button>
                    </div>
                </div>

                <div class="script-card">
                    <h3 class="script-title">自动化报表生成器</h3>
                    <p class="script-desc">一键生成美观的数据分析报表，支持多种格式导出。</p>
                    <div class="script-meta">
                        <span>价格: ¥199</span>
                        <span>销量: 428</span>
                    </div>
                    <div class="script-actions">
                        <button class="action-btn run-btn">购买</button>
                        <button class="action-btn edit-btn">预览</button>
                    </div>
                </div>

                <div class="script-card">
                    <h3 class="script-title">智能客服机器人</h3>
                    <p class="script-desc">基于NLP的智能客服系统，支持多轮对话。</p>
                    <div class="script-meta">
                        <span>价格: ¥499</span>
                        <span>销量: 156</span>
                    </div>
                    <div class="script-actions">
                        <button class="action-btn run-btn">购买</button>
                        <button class="action-btn edit-btn">预览</button>
                    </div>
                </div>

                <div class="script-card" style="background: linear-gradient(135deg, #2563eb, #3b82f6); color: white;">
                    <h3 class="script-title" style="color: white;">更多脚本</h3>
                    <p class="script-desc" style="color: rgba(255,255,255,0.9);">前往脚本商店，发现更多优质自动化脚本。</p>
                    <div class="script-meta" style="color: rgba(255,255,255,0.8);">
                        <span>脚本总数: 1000+</span>
                        <span>每周更新</span>
                    </div>
                    <div class="script-actions">
                        <a href="/store" style="width: 100%">
                            <button class="action-btn" style="width: 100%; background: white; color: #2563eb;">前往商店</button>
                        </a>
                    </div>
                </div>
            </div>
        </section>
    </main>
</body>
</html>
